<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/usertop.jsp"%>
<%@ taglib uri="/struts-bean" prefix="bean"%>
<%@ taglib uri="/struts-html" prefix="html"%>
<%@ taglib uri="/struts-logic" prefix="logic"%>
<html>
	<head>
		<title>相片信息页面</title>
		<link href="/css/login.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript" src="/js/prototype-1.5.1.2.js"
		charset="UTF-8"></script>
	<script language="javascript">


//上传相片
function upload(){
document.all.omethod.value="add";
document.forms[0].submit();
document.all.omethod.value="";
}
//处理提交信息
function next(){
   window.open("/com/struts/web/user/register/regfinish.do","_parent");
   }
  
  function reflesh(){
  history.go(0);
  }
</script>
	<body>
		<html:form action="/com/struts/web/user/jlmanage/edituserpicture"
			method="post" enctype="multipart/form-data">
			<html:hidden property="omethod" />
			<table align="center" width="70%" class="line1" border="0" cellspacing="1" cellpadding="0">
				<tr>
					<td rowspan="5" align="center" width="15%">
						<img
							src="<bean:write name='com_struts_web_user_register_registerPictureForm' property='pictureUrl'/>" />
					</td>
				</tr>
				
				<tr>
				<td class="mtdtextcenterwrite">
				&nbsp;
				</td>
				</tr>
				
				<tr>
				<td class="mtdtextcenterwrite">
				图片大小（80*90）
				</td>
				</tr>
				
				<tr>
				     
					<td class="mtdtextleft">
						<html:file property="picture" styleClass="input1"  size="30"></html:file>
					</td>
				</tr>
				
				<tr>
					<td class="mthmidtext" align="center">
						<input type="button" class="tbutton" onclick="upload()"
							value="上传照片" />
					</td>
				</tr>
				
				<tr>
					<td colspan="2" class="mtdtitle1">
						<input type="button" value="刷新页面" style="cursor:hand"
							onclick="reflesh() " class="tbutton"/>
						如果上传了相片而不能显示请刷新页面!
					</td>
				</tr>
			</table>
		</html:form>

	</body>
</html>
